#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <ModbusServer.h>
#include <ModbusClient.h>
#include <TcpServer.h>
#include <TcpClient.h>
#include <UdpSocket.h>
#include <TooltipManager.h>
#include <MemoryMonitor.h>
#include <FloraLogger.h>
#include "modbusmanger.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    ModbusServer *modebus;
    ModbusServer *modebus_tcp;
    ModbusClient *modbus_clent;
    TcpServer *tcpServer;
    TcpClient *tcpClient;
    UdpSocket *udpsocek;
    TooltipManager tip;
    MemoryMonitor m_memorMoitor;
    ModbusManger m_modbusmanger;
    ModbusClient m_modbusClient;
    ModbusClient_dev m_modbusClient_dev;
private slots:
    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
